#if defined CONFIG_RESOLVER
#ifndef FLV_H
#define FLV_H

typedef struct ONMETAData{
	ms_bool can_seekto_end;
	ms_byte creationdate[256];
	ms_double duration;
	ms_double filesize;
//audio	
	ms_double audiocodecid;
	ms_double audiodatarate;
	ms_double audiodelay;
	ms_double audiosamplerate;
	ms_double audiosamplesize;
	ms_bool stereo;	
//video	
	ms_double videocodecid;
	ms_double videodatarate;
	ms_double framerate;	
	ms_double width;
	ms_double height;	
}ONMETAData;
typedef struct FLVSTREAMInfo{
	ms_bool flags_keyframe;		//TypeFlagsVideo
	ms_bool flags_hasvideo;		//TypeFlagsVideo
	ms_bool flags_hasaudio;		//TypeFlagsAudio
	ms_bool flags_hasfilter;
	ms_u32 pts;
	ms_u32 data_len;	
	ms_u32 len_res;
	ms_u32 noflv_time;
	ms_u32 num_datacheck;
	ONMETAData nometa_data;
}FLVSTREAMInfo;
extern ms_bool 
	flv_api_check(FLVSTREAMInfo *pflv_streaminfo,char * databuf,ms_s32 len);
extern ms_s32 
	flv_api_setFlvHeaderScript(FLVSTREAMInfo * pflv_streaminfo,char * databuf);
extern ms_void 
	flv_api_test(ms_u32 logopt,ms_string url);
extern ms_void 
	flv_api_getInfo(FLVSTREAMInfo *pflv_streaminfo,ms_u08 *pinfoout);
#endif
#endif